home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / djgpp / src / texinfo-.1 / info / makefile.djg < prev    next >
Encoding:
Makefile  |  1993-11-27  |  2.9 KB  |  108 lines

  1. LONGARGS = gcc:ar
  2.  
  3. srcdir = .
  4. common = ../libtxi
  5.  
  6. LDEFS = -DNAMED_FUNCTIONS=1 -DHAVE_BCOPY
  7.  
  8. LIBS = -L$(common) -ltxi -lpc
  9. LOADLIBES = $(LIBS)
  10.  
  11. CFLAGS = -O2
  12. LDFLAGS = -s
  13.  
  14. MAKEINFO = ../makeinfo/makeinfo
  15.  
  16. OBJS =    dir.o display.o doc.o echo_area.o filesys.o info-utils.o info.o \
  17.     infodoc.o infomap.o m-x.o nodes.o search.o session.o signals.o \
  18.     terminal.o tilde.o window.o indices.o xmalloc.o nodemenu.o \
  19.     footnotes.o dribble.o variables.o gc.o pc_term.o
  20.  
  21. # The names of files which declare info commands.
  22. CMDFILES = $(srcdir)/session.c $(srcdir)/echo_area.c $(srcdir)/infodoc.c \
  23.        $(srcdir)/m-x.c $(srcdir)/indices.c $(srcdir)/nodemenu.c \
  24.        $(srcdir)/footnotes.c $(srcdir)/variables.c
  25.  
  26. # The name of the program which builds documentation structure from CMDFILES.
  27. MAKEDOC_OBJECTS = makedoc.o xmalloc.o
  28. MAKEDOC_SOURCE = makedoc.c xmalloc.c
  29.  
  30. %.o : %.c
  31.     gcc -c $(LDEFS) -I. -I$(common) $(CFLAGS) $<
  32.  
  33. all: info.exe info.info info-stnd.info
  34.  
  35. info.exe : info
  36.     coff2exe info
  37.  
  38. info: $(OBJS) ../libtxi/libtxi.a
  39.     gcc $(LDFLAGS) -o info $(OBJS) $(LOADLIBES)
  40.  
  41. info.info: info.texi
  42.     $(MAKEINFO) --no-split -I$(srcdir) info.texi
  43.  
  44. info-stnd.info: info-stnd.texi
  45.     $(MAKEINFO) --no-split -I$(srcdir) info-stnd.texi
  46.  
  47. makedoc.exe : makedoc
  48.     coff2exe makedoc
  49.  
  50. makedoc: $(MAKEDOC_OBJECTS) ../libtxi/libtxi.a
  51.     gcc $(LDFLAGS) -o makedoc $(MAKEDOC_OBJECTS) $(LOADLIBES)
  52.  
  53. clean :
  54.     -del *.o
  55.     -del makedoc
  56.     -del info
  57.  
  58. # The files `doc.c' and `funs.h' are created by ./makedoc run over the source
  59. # files which contain DECLARE_INFO_COMMAND.  `funs.h' is a header file
  60. # listing the functions found.  `doc.c' is a structure containing pointers
  61. # to those functions along with completable names and documentation strings.
  62. funs.h: makedoc.exe $(CMDFILES)
  63.     makedoc $(CMDFILES)
  64.  
  65. doc.c:         funs.h
  66. dribble.o:    dribble.c dribble.h
  67. display.o:    display.c
  68. echo_area.o:    echo_area.c
  69. filesys.o:    filesys.c
  70. info-utils.o:    info-utils.c
  71. info.o:        info.c
  72. infodoc.o:    infodoc.c
  73. infomap.o:    infomap.c
  74. m-x.o:        m-x.c
  75. nodes.o:    nodes.c
  76. search.o:    search.c
  77. session.o:    session.c
  78. signals.o:    signals.c
  79. terminal.o:    terminal.c
  80. tilde.o:    tilde.c
  81. window.o:    window.c
  82. xmalloc.o:    xmalloc.c
  83. indices.o:    indices.c
  84. makedoc.o:    makedoc.c
  85.  
  86. dir.o:         dir.c
  87. display.o:     nodes.h info-utils.h search.h
  88. display.o:     terminal.h window.h display.h
  89. echo_area.o:     info.h
  90. filesys.o:     general.h tilde.h filesys.h
  91. footnotes.o:     footnotes.h
  92. info-utils.o:     info-utils.h nodes.h search.h
  93. info.o:     info.h $(common)/getopt.h
  94. infodoc.o:     info.h doc.h
  95. infomap.o:     infomap.h funs.h
  96. gc.o:        info.h
  97. m-x.o:         info.h
  98. nodes.o:     search.h filesys.h
  99. nodes.o:     nodes.h info-utils.h
  100. search.o:     general.h search.h nodes.h
  101. session.o:     info.h
  102. signals.o:     info.h signals.h
  103. terminal.o:     terminal.h termdep.h
  104. tilde.o:     tilde.h
  105. variables.c:     variables.h
  106. window.o:     nodes.h window.h display.h
  107. window.o:     info-utils.h search.h infomap.h
  108.